package torres.map.decal;

import java.awt.image.BufferedImage;
import torres.fileIO.ClassContainer;
import torres.view.ImageLoader;

/**
 * @author Torres
 * A decal that (may) marks a level up effect tile.
 */
public class GoldStar implements Decal {
	
	private static final GoldStar instance = new GoldStar();
	private ImageLoader loader;
	private BufferedImage image;
	
	/**
	 * Creates a new GoldStar Decal that is applied to a specified Tile.
	 */
	private GoldStar() {
		
		loader = new ImageLoader("goldStar.png");
		this.image = loader.getImage();
	}
	
	/**
	 * Returns the static GoldStar decal instance
	 * @return GoldStar instance
	 */
	public static GoldStar getInstance() {
		
		return instance;
	}
	
	/* (non-Javadoc)
	 * @see torres.view.Displayable#getImage()
	 */
	public BufferedImage getImage() {
		
		return image;
	}
	
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		
		return "*";
	}
	
	/* (non-Javadoc)
	 * @see torres.fileIO.Saveable#save()
	 */
	public ClassContainer save() {
		ClassContainer curClass = new ClassContainer("GoldStar");
		
		return curClass;
	}

	/* (non-Javadoc)
	 * @see torres.fileIO.Saveable#load(torres.fileIO.ClassContainer)
	 */
	@Override
	public void load(ClassContainer classContainer) {
		// TODO Auto-generated method stub
		
	}
}
